package xzl.edu.cn.set.people;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Manager extends Employee {
	public Manager(String name, double salary, int year, int month, int day) {
		super(name, salary, year, month, day);
	}

	public double bonus;

	public void setBonus(double bonus) {
		this.bonus = bonus;
	}

	public String toString() {
		return "Manager [" + "name:" + name + "salary:" + salary + "Day" + getHireDay() + "]" + "bouns:" + bonus;
	}

	public void getDescription() {
		Logger logger = LogManager.getLogger(Manager.class);
		logger.info(name + ",This is a Manager with the salary of " + salary);
	}
}
